

<!-- 选择物流 -->
<template>
	<view class="content">
	
		<!-- header部分 -->
		<view class='header-Container header-height'>
			<view class="header-bg"></view>
			<navHeader pageTitle="选择物流" colorTheme="black">
			</navHeader>
		</view>
		
		<!-- 物流列表 -->
		<view v-if="LogisticsList && LogisticsList.length" class="logisticsList-Container">
			<view @click="selectLogistics(index)" v-for="(item, index) in LogisticsList" :key="item.key" class="oneItem borderOneRpx">
				{{item.value}}
			</view>
		</view>
		<g-empty v-else></g-empty>
	</view>
</template>

<script>
	import navHeader from '@/components/nav-header/nav-header';
	
	export default {
		components: {
			navHeader
		},
		data() {
			return {
				icon: {
				},

				LogisticsList: []
			};
		},
		onLoad(options) {
			uni.showLoading({
				title:'查询中'
			})
			this.getLogisticsList_fun();
		},
		methods:{
			
			// 物流列表
			getLogisticsList_fun() {
				
				var that = this;
				that.$api.globalUtil.requestAjax({
					url: '/OrderApi/getLogisticsInfoForApi',
					method: "POST",
					data: {
					},
					success: function(res) {
						if(res.data.success) {
							that.LogisticsList = res.data.response;
						}
						uni.hideLoading();
					},
				});
			},
			
			
			// 选择物流
			selectLogistics(index) {
				uni.$emit("selectLogistics", this.LogisticsList[index]);
				uni.navigateBack({
				});
			}
		}
	}
</script>


<style lang="less">
	
	page,
	.content {
		background: #F5F5F5;
		height: 100%;
	}
	
	// header部分
	.header-Container {
		z-index: 999;
		position: sticky;
		top: 0;
		width: 100%;
		height: 176rpx;
		overflow: hidden;
		box-shadow: 0px 1rpx 1rpx 0px rgba(0, 0, 0, 0.08);
		background: rgba(255, 255, 255, 1);
	
		.leftBtns {
			display: flex;
			align-items: center;
			justify-content: flex-start;
			position: absolute;
			bottom: 0;
			width: 100%;
			height: 86rpx;
	
			.back {
				position: relative;
				z-index: 99;
				margin-left: 17rpx;
				width: 44rpx;
				height: 44rpx;
			}
		}
	
		.title {
			position: absolute;
			bottom: 0;
			width: 100%;
			height: 86rpx;
			line-height: 86rpx;
			text-align: center;
			font-size: 36rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: rgba(51, 51, 51, 1);
		}
	}
	
	
	// 物流信息
	.logisticsList-Container {
		// position: absolute;
		// top: 196rpx;
		margin-top: 20rpx;
		padding: 0 30rpx;
		width: 100%;
		height: 100vh;
		background:rgba(255,255,255,1);
		
		.oneItem {
			position: relative;
			height: 100rpx;
			line-height: 100rpx;
			font-size:30rpx;
			font-family:PingFang SC;
			// font-weight:500;
			color:rgba(51,51,51,1);
			background:rgba(255,255,255,1);
			
			&.borderOneRpx:after {
				border-top: 0;
				border-left: 0;
				border-right: 0;
				border-color: #EEEEEE;
			}
		}
	}
</style>



